import groovy.sql.Sql

class Test {
	static main(args) {
		println 'Hello Groovy';
		
		def sql = Sql.newInstance('jdbc:vertica://padev3:5433/padb', 'pauser', 'papassword', 'com.vertica.jdbc.Driver');
		sql.eachRow( 'select * from AGGREGATE_INFO' ) {
			println "${it.CLUSTER_NAME}:${it.RAW_TABLE_NAME}" 
		};
		sql.close();
	}
}
